//
//  PointOfSell.h
//  auditorias
//
//  Created by Mauro on 7/21/13.
//  Copyright (c) 2013 Antilope. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>

#define  PDV_FILE_PREFIX        @"PDV_"
#define  PDV_TYPE_NONE          4
#define  PDV_TYPE_APPROVED      1
#define  PDV_TYPE_PENDING       2   
#define  PDV_TYPE_REJECTED      3

@interface PointOfSell : NSObject
{
    NSString* internalId;
	NSString* externalId;
	NSString* name;
	NSString* clientCode;
	NSString* address;
	NSString* description;
	NSArray* comments;
	int statusType;
	CLLocationCoordinate2D geoLocation;
}


@property(nonatomic,retain) NSString* internalId;
@property(nonatomic,retain) NSString* externalId;
@property(nonatomic,retain) NSString* name;
@property(nonatomic,retain) NSString* clientCode;
@property(nonatomic,retain) NSString* address;
@property(nonatomic,retain) NSString* description;
@property(nonatomic,retain) NSArray* comments;
@property(nonatomic,assign) int statusType;
@property(nonatomic,assign) CLLocationCoordinate2D geoLocation;

- (id) initWithLocation:(CLLocationCoordinate2D)_geoLocation description:(NSString*)_description;
+ (NSString*) getIdFromPath:(NSString*) pathPDV;
- (NSString*) toJSON;
- (NSString*) toInternalJSON;
- (id) initWithDictionary:(NSDictionary*)dictionary;
- (NSString*) getFileName;


@end
